package com.grq.framework.core.util;

public class PwdUtil {

    /**
     * 判断是否为安全性高的密码
     *
     * @param password
     * @return
     */
    public static boolean isSafePwd(String password) {
        // 8-32位,必须包含大、小写字母,数字,字符四项中的三项
        String regStr = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_]+$)(?![a-z0-9]+$)(?![a-z\\W_]+$)(?![0-9\\W_]+$)[a-zA-Z0-9\\W_]{8,32}$";
        return password.matches(regStr);
    }

}
